package com.hsgene.goods.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品原始基本信息
 *
 * @author wangbing
 * @version 1.0, 2018/7/13
 */
public class GoodsOrigin {

    /**
     * 商品编号
     */
    private String id;

    /**
     * 检测机构(supplier_detection_organization)id
     */
    private Long supplierDoId;

    /**
     * 套餐名称
     */
    private String goodsName;

    /**
     * 封面图
     */
    private String coverUrl;

    /**
     * 套餐商品banner介绍（JSON）
     */
    private String goodsBanner;

    /**
     * 原始价格
     */
    private BigDecimal detectionOriginalPrice;

    /**
     * 检测时长
     */
    private Short detectionDuration;

    /**
     * 规格包装
     */
    private String specification;

    /**
     * 产品介绍（富文本）
     */
    private String presentation;

    /**
     * 发布时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date publishTime;

    /**
     * 状态：待完善、待发布、已发布、修改申请中、上架中、已下架
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateTime;

    /**
     * 商品快照id
     */
    private String snapshootId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getSupplierDoId() {
        return supplierDoId;
    }

    public void setSupplierDoId(Long supplierDoId) {
        this.supplierDoId = supplierDoId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getGoodsBanner() {
        return goodsBanner;
    }

    public void setGoodsBanner(String goodsBanner) {
        this.goodsBanner = goodsBanner;
    }

    public BigDecimal getDetectionOriginalPrice() {
        return detectionOriginalPrice;
    }

    public void setDetectionOriginalPrice(BigDecimal detectionOriginalPrice) {
        this.detectionOriginalPrice = detectionOriginalPrice;
    }

    public Short getDetectionDuration() {
        return detectionDuration;
    }

    public void setDetectionDuration(Short detectionDuration) {
        this.detectionDuration = detectionDuration;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getPresentation() {
        return presentation;
    }

    public void setPresentation(String presentation) {
        this.presentation = presentation;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getSnapshootId() {
        return snapshootId;
    }

    public void setSnapshootId(String snapshootId) {
        this.snapshootId = snapshootId;
    }
}
